package study.day5.t11;

public class Shark extends Fish implements Power{
    public Shark() {

    }

    public Shark(String type) {
        this.type= type;
    }

    @Override
    public void eat() {
        System.out.println("鲨鱼吃小鱼");
    }

    @Override
    public void show() {
        System.out.println("类型是"+this.type);
    }

    @Override
    public void power() {
        System.out.println("鲨鱼在电感应");
    }

    @Override
    public void swim() {
        System.out.println("鲨鱼在游泳");
    }
}
